package com.kangle.changergb;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        byte[] bytes = new byte[9];
        for (int i = 0;i<bytes.length;i++){
            bytes[i] = (byte) i;
        }
        int[] ints = new int[3];
        for (int i = 0;i<ints.length;i++){
            ints[i] = 9;
        }
        ChangeRgbUtil.changeRGB2RGB888(bytes,ints,3);
        for (int i = 0;i<ints.length;i++){
            Log.d("int sss:","int []:" + i + "    "+Integer.toHexString(ints[i]));
        }


    }
}
